<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理-功能导航</title>
<style>
body {
	cursor: default;
	background-color: #666666;
	font-weight: bold;
	font-size: 12px;
	overflow: hidden;
	padding: 0px;
	margin: 0;
	overflow-x: hidden;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu {
	width: 140px;
	border-style: solid none none solid;
	border-color: #8F8F8F;
	border-size: 1px;
	border-width: 1px;
	margin: 10px;
	margin: 2px;
}

.menu h4 {
	font-size: 14px;
	font-weight: bold;
	margin: 0;
	padding: 10px 10px 0px 13px;
	background: url(images/menu4.gif) no-repeat;
	border-right: 1px solid #8F8F8F;
	height: 20px !important;
	height: 25px;
	color: #FFF;
	cursor: pointer;
}

.menu li a {
	voice-family: "\"}\"";
	voice-family: inherit;
	height: 24px !important;
	height: 25px;
	border-right: 1px solid #8F8F8F;
	text-decoration: none;
}

.menu li a:link,.menu li a:visited {
	color: #3F3F3F;
	display: block;
	background: url(images/menu1.gif);
	padding: 8px 0 0 10px;
}

.menu li a:hover,#current {
	color: #FFF;
	background: url(images/menu1.gif) 0 -32px;
	padding: 8px 0 0 10px;
}

.menu li a:active {
	color: #26370A;
	background: url(images/menu1.gif) 0 -64px;
	padding: 8px 0 0 10px;
}

.help {
	background: #fff;
	color: #555;
	border: 1px solid #8F8F8F;
	border-left: 0;
	padding: 10px;
	line-height: 18pt;
}
</style>
</head>

<body style="overflow-x: hidden;">

<div class="menu">
<ul>
	<?php foreach($leftnavs as $k => $x) { ?>

	<h4 onclick="expandIt(<?php echo $k ?>)"><?php echo $x['name'] ?></h4>
	<div id="menu<?php echo $k ?>" style="display: none">
		<?php foreach($x['acts'] as $act) { ?>
		<li><a target="main" href="<?php echo $purl ?><?php echo $x['flag'] ?>/?<?php echo $act['aurl'] ?>"><?php echo $act['name'] ?></a></li>
		<?php } ?>
	</div>
	<?php } ?>

</ul>
</div>

<div class="menu">
<ul>
	<h4>帮助说明</h4>
	<div class="help">Help?NO!</div>
</ul>
</div>

<script>
curObj = $('menu1');
function $(id){return document.getElementById(id)}
function display(obj){obj.style.display=obj.style.display=='none'?'block':'none'}
function expandIt( id){
	curObj = $('menu'+id);
	display(curObj);
}
//默认展开首项
window.onload = expandIt(0);
</script>

</body>
</html>